package net.xi.dmhome.mapper;

import net.xi.dmhome.entity.Usertype;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import javax.websocket.server.PathParam;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jxhu
 * @since 2021-02-02
 */
@Repository
public interface UsertypeMapper extends BaseMapper<Usertype> {

    @Select("SELECT perms from dm_usertype where id = #{type}")
    String getuserPerms(@PathParam("type") Integer type);

}
